package com.consumer.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.consumer.common.IdConstraint;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lijn
 * @title 目录
 * @description 目录
 * @date: 2022/11/24 9:46
 * @updateTime 2022/11/24 9:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DirectoryVo implements Serializable {

    private static final long serialVersionUID = -1764339017867140513L;

    @JSONField(name = "bucketFileId")
    @IdConstraint
    private String bucketFileId;

    //桶ID
    @JSONField(name = "bucketId")
    @IdConstraint
    private String bucketId;

    //目录ID
    @JSONField(name = "dirId")
    private String dirId;

    //目录父级ID
    @JSONField(name = "dirPid")
    private String dirPid;

    //目录名称
    @JSONField(name = "dirName")
    @NotNull(message = "目录名称不能为空")
    @Length(min = 1, max = 300, message = "文件夹")
    private String dirName;

    //目录描述
    @JSONField(name = "dirRemark")
    private String dirRemark;
}
